package com.example.mynews;

import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import org.w3c.dom.Text;

/**
 * Created by 王聪 on 2018/5/21.
 */

class MyViewHolder extends RecyclerView.ViewHolder {
    View view;
    private ImageView head;
    private TextView title;
    private TextView author;
    private TextView date;

    public MyViewHolder(View itemView) {
        super(itemView);
        this.view=itemView;
        head=itemView.findViewById(R.id.iv_head);
        title=itemView.findViewById(R.id.tv_title);
        author=itemView.findViewById(R.id.tv_author);
        date=itemView.findViewById(R.id.tv_date);
    }
    public ImageView getHead() {
        return head;
    }

    public void setHead(ImageView head) {
        this.head = head;
    }

    public TextView getTitle() {
        return title;
    }

    public void setTitle(TextView title) {
        this.title = title;
    }

    public TextView getAuthor() {
        return author;
    }

    public void setAuthor(TextView author) {
        this.author = author;
    }

    public TextView getDate() {
        return date;
    }

    public void setDate(TextView date) {
        this.date = date;
    }
}
